<body id="body">
       <h1>Registration</h1>
    <p>Complete the form below to create an account!</p>
    <g:hasErrors bean="${user}">
                         <div class="errors">
        <g:renderErrors bean="${user}"></g:renderErrors>
                         </div>
    </g:hasErrors>
        
    <g:form action="register" name="registerForm">
        <div class="formField">
            <label for="login">Login:</label>
            <g:textField name="login" value="${user?.login}" />
        </div>
        <div class="formField">            
            <label for="password">Password:</label>
            <g:passwordField name="password"
                             value="${user?.password}"/>
        </div>
        <div class="formField">            
            <label for="confirm">Re Password:</label>
            <g:passwordField name="confirm"
                             value=""/>
        </div>
        <div class="formField">
            <label for="firstName">FirstName:</label>
            <g:textField name="firstName" value="${user?.firstName}" />
        </div>
        <div class="formField">
            <label for="lastName">LastName:</label>
            <g:textField name="lastName" value="${user?.lastName}" />
        </div>
        <g:submitButton class="formButton" 
                        name="register" 
                        value="Register" />
    </g:form>
</body>